import React from 'react'
import { Tabs } from 'antd';
import Normal from '../components/Normal';
import Mobile from '../components/Mobile';
import '../css/login.css'

export default function Login() {
    const onChange = (key) => {
        console.log(key);
      };
      const items = [
        {
          key: '1',
          label: `密码登录`,
          children: <Normal></Normal>,
        },
        {
          key: '2',
          label: `短信登录`,
          children: <Mobile></Mobile>,
        },
        
      ];
  return (
    <div className='login'>
        <Tabs defaultActiveKey="1" items={items} onChange={onChange} />
    </div>
  )
}
